Andrew M . Cheadle Warwick Harvey Andrew J . Sadler Joachim Schimpf

نویسندگان

  • Andrew M. Cheadle
  • Warwick Harvey
  • Andrew J. Sadler
  • Joachim Schimpf
  • Kish Shen
  • Mark G. Wallace
چکیده

ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consider the famous ”SEND + MORE = MONEY” example: sendmore(Digits) :Digits = [S,E,N,D,M,O,R,Y], Digits :: [0..9], alldifferent(Digits), S #\= 0, M #\= 0, 1000*S + 100*E + 10*N + D + 1000*M + 100*O + 10*R + E

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

SCL P ei A Tutorial Introduction

ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...

متن کامل

E CL PS e A Tutorial Introduction

ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...

متن کامل

M.G.: ECLiPSe: A tutorial introduction

ion before(task(Si,Di), task(Sj,Dj)) :Si+Di #<= Sj. Conjunction between(X,Y,Z) :X #< Y, Y #< Z. Disjunction (but see below) neighbour(X,Y) :( X #= Y+1 ; Y #= X+1 ). Iteration not_among(X, L) :( foreach(Y,L),param(X) do X #\= Y ). Recursion not_among(X, []). not_among(X, [Y|Ys]) :X #\= Y, not_among(X, Ys). 11.4 Same Problem Different Model There are often many ways of modelling a problem. Consid...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003